package fmanganiello.tests.javatests.depinj.billing;

import fmanganiello.tests.javatests.depinj.creditcard.CreditCard.ChargeError;

public class ChargeResult {
	private boolean successful;
	private String declineMessage;
	
	public ChargeResult() {
		this(true, ChargeError.OK.toString());
	}
	
	public ChargeResult(boolean successful, String declineMessage) {
		this.successful = successful;
		this.declineMessage = declineMessage;
	}

	public boolean wasSuccessful() {
		return successful;
	}
	
	public String getDeclineMessage() {
		return declineMessage;
	}
}
